/*
 *Program Name: Jet.h
 *Written By:   Cheng-Hsiu Hsieh
 */

#include "Drawable.h"
#include "Bullet.h"
#include <iostream>
#include <string>

#ifndef _JET_
#define _JET_


const int MAXBULLET = 20;

//-----------------------------------------------------------------------------
// Class Prototypes:
//-----------------------------------------------------------------------------
namespace corona
{
	class Image;
};

//-----------------------------------------------------------------------------
// cJet:
//-----------------------------------------------------------------------------
class cJet : public cDrawable
{
public:
	// Constructors:

	cJet();
  cJet( int iHealth, int iScore , int iDamage );
	~cJet();

	// cJet Methods:

	//-----------------------------------------------------------------------------
  void setHealth( int iNew );
  void setScore( int iScore );
  void addScore( int iScore );
  
  bool isDie( int iDamage );
  int getHealth(void);
  int getScore(void);

  cBullet* getRBullet( int i );
  cBullet* getLBullet( int i );

  //-----------------------------------------------------------------------------
	void Frame( float fRed, float fGreen , float fBlue );
	// Desc: Renders the Jet at its current position

  void fire( float mZVelocity );
  
private:
	// Members:
  int mHealth;
  int mScore;
  int mCURRENT_BULLET;
  cBullet* mLBullet[ MAXBULLET ];
  cBullet* mRBullet[ MAXBULLET ];
};

//-----------------------------------------------------------------------------
// Functions:
//-----------------------------------------------------------------------------
cJet* GetJet();

#endif